package com.luoqiz.security.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private Integer id;
    private String username;
    private Integer age;
    /**
     * fastJson特性：格式化
     */
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date createTime;
    /**
     * 不输出该成员变量,相当于Jackson的@JsonInclude注解
     * serialize：是否需要序列化
     */
    @JSONField(serialize = false)
    private String remark;
}